<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {font-family: Verdana, Calibri, Cambria}
.style3 {font-family: Verdana, Calibri, Cambria; font-size: small; }
.style4 {
	font-family: Verdana, Calibri, Cambria;
	font-weight: bold;
	font-style: italic;
	color: #FFFFFF;
}
body,td,th {
	font-family: Verdana, Calibri, Cambria;
	font-size: small;
}
-->
</style>
</head>

<body>
<table width="700" height="422" border="0" align="center">
  <tr>
    <td align="center" valign="middle"><img src="images/title.png" width="700" height="100"></td>
  </tr>
  <tr>
    <td height="257" align="center" valign="top"><table width="100%" border="0">
      <tr>
        <td align="center"><div align="left">
          <p class="style3">
          
          <%  
		
			if (session.getAttribute("user")==null)
			response.sendRedirect("loginerr.jsp");
			
			else
			{
	
			String user = session.getAttribute("user").toString();
			String type = session.getAttribute("type").toString();
			String matr = session.getAttribute("matricola").toString();
			String nome = session.getAttribute("nome").toString();
			String cogn = session.getAttribute("cognome").toString();
			
			out.println("Benvenuto " + user);
			}
		%>
		  </p>
        </div></td>
        </tr>
      <tr>
        <td class="style1"><p align="center"><strong>Questa griglia dovrebbe essere lunghissima!!!  </strong></p></td>
        </tr>
      <tr>
        <td class="style1"><div align="center"></div></td>
        </tr>
      <tr>
        <td class="style1"><div align="center">
          <table width="100%" cellpadding="2" cellspacing="0" bordercolor="#000000" style="border:1px solid;">
            <tr>
              <td bordercolor="#333333" bgcolor="#33CCCC" class="style3" style="border:1px solid;"><div align="center" >col1</div></td>
              <td bordercolor="#333333" bgcolor="#33CCCC" class="style3" style="border:1px solid;"><div align="center" >col2</div></td>
              <td bordercolor="#333333" bgcolor="#33CCCC" class="style3" style="border:1px solid;"><div align="center" >col3</div></td>
              <td bordercolor="#333333" bgcolor="#33CCCC" class="style3" style="border:1px solid;"><div align="center" >col4</div></td>
              <td bordercolor="#333333" bgcolor="#33CCCC" class="style3" style="border:1px solid;"><div align="center" >col5</div></td>
            </tr>
            <%
              	for (int i=0;i<100;i++)
              	{
              		String color;
              		String bordercell;
              		
              		if (i%2==0)
              		{
              			color ="\"#E0E0E0\"";
              			bordercell="style=\"border:1px solid;\";";
              		}
              		else
              		{
              			color = "\"#EFFFEF\"";
              			bordercell="style=\"border:1px solid;\";";
              		}
              		
              		out.println("<tr>");
              		out.println("<td "+bordercell+" bordercolor=\"#555555\" bgcolor = "+color+ ">riga" + (i+1) + "</td>");
              		out.println("<td "+bordercell+" bordercolor=\"#555555\" bgcolor = "+color+ ">riga" + (i+1) + "</td>");
              		out.println("<td "+bordercell+" bordercolor=\"#555555\" bgcolor = "+color+ ">riga" + (i+1) + "</td>");
              		out.println("<td "+bordercell+" bordercolor=\"#555555\" bgcolor = "+color+ ">riga" + (i+1) + "</td>");
              		out.println("<td "+bordercell+" bordercolor=\"#555555\" bgcolor = "+color+ ">riga" + (i+1) + "</td>");
              		out.println("</tr>");
              	}
             %>
          </table>
        </div></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="middle" bgcolor="#000099"><div align="right" class="style4">HOME AMMINISTRATORE </div></td>
  </tr>
</table>
</body>
</html>
